package com.recharge.core.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.recharge.core.entity.TransactionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 交易信息表 Mapper 接口
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Mapper
public interface TransactionMapper extends BaseMapper<TransactionEntity> {

    /**
     * 分页查询流水记录(包含商户名称)
     *
     * @param page
     * @param map
     * @return
     */
    IPage<TransactionEntity> selectListPage(Page<TransactionEntity> page, @Param("param") Map<String, Object> map);

    /**
     * 分页查询流水记录(包含商户名称)  未完成
     *
     * @param page
     * @return
     */
    IPage<TransactionEntity> selectInfoPage(Page<TransactionEntity> page, @Param("ew") QueryWrapper<TransactionEntity> wrapper);
}
